package com.cxf.service.impl;

import java.util.List;

import com.cxf.dao.db.PetDao;
import com.cxf.dao.impl.PetDaoImpl;
import com.cxf.entity.Pet;
import com.cxf.service.PetService;

public class PetServiceImpl implements PetService {

	PetDao dao = new PetDaoImpl();
	
	
	public Pet findPet(int i) {
		Pet pet = dao.findPetById(i);
		return pet;
	}
	@Override
	public List<Pet> getSendedPet() {  
		return dao.findSelledPet();
	}
}
